package com.qk.enums;

/**
 * @Author: zhangchuang
 * @Date: 2025/10/10 20:12
 * @Description: 三方Api枚举类
 */
public enum ApiEnum implements Code{

    OSS_STS_ERROR("获取STS令牌失败", 10001),
    UPLOAD_ERROR("上传文件失败", 10002),
    UPLOAD_EMPTY_ERROR("上传文件为空", 10003),
    UPLOAD_IMAGE_ERROR("上传文件为空", 10004),
    WEATHER_ERROR("获取天气失败", 10005),
    ;

    private final int code;
    private final String message;

    ApiEnum(String message, int code) {
        this.message = message;
        this.code = code;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
